package com.xiaolin.springbootdemo.exception;

import com.xiaolin.springbootdemo.utils.ICommonCode;

/**
 * @ClassName ExceptionUtils
 * @Description 异常工具类，用于抛出异常
 * @Detail detail
 * @Author MyPC
 * @Date 2021/1/10
 * @Version 1.0
 */
public class ExceptionUtils {
    public static void fail(ICommonCode iCommonCode){
        throw new RequestHandleException(iCommonCode);
    }
    public static void fail(String msg){
        throw new RequestHandleException(msg);
    }
}
